# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-referencing
pkgver=0.32.0
pkgrel=0
pkgdesc="Cross-specification JSON referencing"
url="https://github.com/python-jsonschema/referencing"
arch="noarch"
license="MIT"
depends="
	py3-attrs
	py3-rpds-py
	"
makedepends="
	py3-gpep517
	py3-hatch-vcs
	py3-hatchling
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/python-jsonschema/referencing/releases/download/v$pkgver/referencing-$pkgver.tar.gz"
builddir="$srcdir/referencing-$pkgver"
options="!check" # circular with jsonschema

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5df7693e6f0f4c9b572a0bb8d78938fb831396d0b25a59fc61d196bd92d61346c6e443babbf986470c95d7663d8f7678a5a92850a29f750769e5afb412d9fa54  referencing-0.32.0.tar.gz
"
